package com.example.util;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TestName {
    @RabbitListener(queuesToDeclare = @Queue("name"))
    public void wp(String message){
        System.out.println("work得到消息:"+message);
    }
}
